package com.itmayiedu.job.executor.service.jobhandler;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import static com.xxl.job.core.biz.model.ReturnT.SUCCESS;

@JobHandler("demoJobHandler")
@Component
public class DemoHandler extends IJobHandler {
	@Value("${server.port}")
	private String serverPort;

	@Override
	public ReturnT<String> execute(String param) throws Exception {
		System.out.println("######端口号：serverPort" + serverPort + "###定时Job开始执行啦!!!!######");
		return SUCCESS;
	}

}
